public class Main55 {
    public static void main(String[] args) {
        int[] arr1 = new int[]{1,2,3,4,5};
        int[] arr2 = new int[5];
        int[] arr3 = {1,2,3,4,5};
        for(int a : arr1){
            System.out.printf(a+" ");
        }
        System.out.print("\n");for(int b : arr3){
            System.out.print(b+" ");
        }
        System.out.print("\n");
        for(int i=0;i<arr2.length;i++){
            arr2[i]=i;
        }
        for(int c : arr2){
            System.out.print(c+" ");
        }
    }
}